package com.example.user.service.feign;

import com.example.commons.response.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "account")
@Service
public interface UserAccountClient {

    @PostMapping("/private/add/account")
    ResponseResult addAccount(@RequestBody String body);

    @PostMapping("/private/test")
    ResponseResult test(@RequestBody String userId);
}
